﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="SanPham.aspx.cs" Inherits="Form_SanPham" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    <asp:GridView ID="GridSanPham" runat="server" AllowPaging="True" AutoGenerateColumns="False"
        BorderColor="#CCCCCC" BorderStyle="Dotted" BorderWidth="1px"
        CellPadding="3" OnPageIndexChanging="GridBooks_PageIndexChanging" PageSize="3"
        Width="456px" OnSelectedIndexChanging="GridBooks_SelectedIndexChanging" 
        Height="500px" AllowSorting="True" GridLines="Horizontal" 
        onselectedindexchanged="GridSanPham_SelectedIndexChanged">
        <Columns>
            <asp:TemplateField HeaderText="">
                <HeaderStyle CssClass="NewBooks" Font-Names="Verdana" Font-Size="10pt" ForeColor="Black" />
                <ItemTemplate>
                    <table style="width: 431px">
                        <tr>
                            <td rowspan="4" style="width: 172px">
                                <asp:Image ID="LinkImage" runat="server" Height="119px" ImageUrl='<%# ("~/SanPham/"+Eval("HinhAnh").ToString()) %>'
                                    Width="194px" /></td>
                                    
                            <td style="text-align: left">
                                <asp:Label ID="lblMaSP" runat="server"
                                    Text='<%# bind("MaSP") %>' Visible="False"></asp:Label></td>
                                    <td style="text-align: left">
                                <asp:Label ID="lblTenHinh" runat="server"
                                    Text='<%# bind("HinhAnh") %>' Visible="False"></asp:Label></td>
                        </tr>
                        <tr>
                            <td style="text-align: left">
                                <asp:Label ID="dola" runat="server" Font-Names="Verdana" Font-Size="9pt" 
                                    ForeColor="Blue" Text="Tên sản phẩm"></asp:Label>
                                <asp:Label ID="lblTenSp" runat="server" Font-Names="Verdana" Font-Size="10pt" 
                                    ForeColor="#9A0000" Text='<%# bind("TenSP") %>'></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left">
                                <asp:Label ID="Label6" runat="server" Font-Names="Verdana" Font-Size="8pt" 
                                    ForeColor="Blue" Text="Giá :"></asp:Label>
                                <asp:Label ID="lblPrice" runat="server" Text='<%# bind("DonGia") %>' 
                                    Font-Names="Verdana" Font-Size="8pt" ForeColor="Black"></asp:Label>&nbsp; <asp:Label ID="Label4"
                                        runat="server"   Text="VND" Font-Size="Smaller"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                           <td style="text-align: left; width: 172px;" colspan="2">
                                <asp:Label ID="Label2" runat="server" Font-Names="Verdana" Font-Size="8pt" 
                                    ForeColor="Blue" Text="Thông số :"></asp:Label>
                                <asp:Label ID="Label3" runat="server" Text='<%# bind("ThongSo") %>' 
                                    Font-Names="Verdana" Font-Size="8pt" ForeColor="Black"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                            <asp:LinkButton ID="LinkButton2" runat="server" BackColor="#9A0000" 
                                    CommandName="Select" Font-Bold="True" Font-Names="Verdana" Font-Size="8pt" 
                                    Font-Underline="False" ForeColor="White" Height="16px" Width="80px" 
                                    > Mua Hàng</asp:LinkButton></td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <FooterStyle BackColor="White" ForeColor="#000066" />
        <RowStyle ForeColor="#000066" />
        <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
        <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
    </asp:GridView>
    <asp:Label ID="Label1" runat="server" Text="Label" Visible="false"></asp:Label>
</asp:Content>

